home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Algorithms for Image Analysis
/
Practical Algorithms for Image Analysis.iso
/
CH_6.1
/
SPP
/
SPP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1999-09-11
|
819b
|
40 lines
/*
* spp.h
*
* Practical Algorithms for Image Analysis
*
* Copyright (c) 1997, 1998, 1999 MLMSoftwareGroup, LLC
*/
/*
* SPP.H
*
* header file for spp.c
*
*/
#include "ip.h"
#define ZERO 0
#define SQ2 1.414213562
#define OFFSETOF(s,m) ((size_t)&((s *)0)->m) /* see Harbison & Steele */
typedef struct Pix {
int x, y;
} Pix;
/* function prototypes */
/* spp.c */
extern int compare (void const *t1, void const *t2);
extern void fail_alloc (char *str, int code);
extern void usage (char *);
extern void main (int argc, char **argv);
/* scan_img.c */
extern int x_pp (struct Pix *Cxy, long *n,
int left_x, int imin, int right_x, int imax);
/* vor_io.c */
extern void write_vin_file (FILE * file, int n,
int xmin, int ymin, int xmax, int ymax, struct Pix *Cxy);